Numerical Analysis in Pascal ABC: Studies in Applied Mathematics by Zhavoronkov Leonid
Author:Zhavoronkov, Leonid [Zhavoronkov, Leonid]
Language: eng
Format: epub
Published: 2020-01-24T16:00:00+00:00
Example 8.1. Develop the program that calculates and draws the transition curve family of the inertial link with elements C = 0.1 mcF and R = 0.51, 0.82, 1.2 kOm.
Solution.
The program Prog_8_6 (listing 8.6) contains two subroutines:
- CoordSys that draws the rectangle axes;
- Equat that calculates and draws the response family (fig.54).
Program Prog_8_6;
Uses GraphABC, ABCobjects;
Procedure CoordSys;
var j,k: integer ; var x,xc,yc: real ;var s: string ;
begin
SetWindowSize(800 ,500 );
SetPenStyle(psClear);
SetPenColor(clBlack); SetPenWidth(1 );
Line(100 ,20 ,750 ,20 ); Line(750 ,20 ,750 ,400 );
Line(100 ,20 ,100 ,400 ); Line(100 ,400 ,750 ,400 );
for k:=1 to 30 do
begin
Line(100 +21 *k, 400 , 100 +21 *k,392 );
end ;
for k:=2 to 16 do
begin
x:=0.2 *(k-1 ); Str(x:3 :1 ,s);
var t:=new TextABC(48 +42 *k,408 ,12 ,s);
end ;
for k:=1 to 11 do
begin
Line(100 ,436 -36 *k,108 ,436 -36 *k);
end ;
for k:=1 to 11 do
begin
yc:=0.1 *(k-1 ); Str(yc:2 :1 ,s);
var t:=new TextABC(72 ,426 -36 *k,12 ,s);
end ;
for k:=1 to 11 do
begin
Line(742 ,436 -36 *k,750 ,436 -36 *k);
end ;
for k:=1 to 11 do
begin
yc:=0.1 *(k-1 ); Str(yc:2 :1 ,s);
var t:=new TextABC(758 ,428 -36 *k,12 ,s);
end ;
en ;
Procedure Equat(cc, rr: real );
const x0=100 ; y0=400 ; mx=2100 ; my=360 ;
var k,x1,x2,y1,y2,u1,u2,z: integer ;
var u,y: array [0..99 ] of real ;
var b,br,t,dt,tt: real ;
begin
tt:=rr*cc; dt:=0.01 ; b:=dt/tt; y[0 ]:=0 ; t:=0 ; y2:=0 ;
for k:=1 to 30 do
begin
t:=t+dt; y[k]:=b+(1 -b)*y[k-1 ];
x1:=x0+Round(t*mx);
y1:=y0-Round(y[k]*my);
SetPenWidth(3 ); SetPenColor(clBlack);
if k>1 then
begin
Line(x1,y1,x2,y2);
end ;
x2:=x1; y2:=y1;
end ;
z:=Round(b*370 ); Line(x0,y0,x0+22 ,y0-z);
end ;
//============Main===========
var cc,rr:real ; var s1,s2,s3,s4: string ;
begin
CoordSys;
var t1:= new TextABC(525 ,185 ,12 ,'Inertial link' );
cc:=0.1 ; Str(cc:3 :1 ,s1);
var t2:= new TextABC( 540 , 210 , 12 , 'C = ' +s1);
rr:=0.51 ; Str(rr:3 :2 ,s2);
var t3:= new TextABC(180 ,104 ,12 ,'R = ' +s2);
Equat(cc,rr); rr:=0.82 ; Str(rr:3 :2 ,s3);
var t4:= new TextABC(296 ,94 ,12 ,'R = ' +s3);
Equat(cc,rr); rr:=1.2 ; Str(rr:3 :2 ,s4);
var t5:= new TextABC(400 ,104 ,12 ,'R = ' +s4);
Equat(cc,rr);
end .
Listing 8.6
The inertial link is investigated in the frequency space as its response at a harmonic input signal in the given frequency diapason with the signal amplitude being constant.
There are the expressions of the MFR and the PFR:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Applied | Geometry & Topology |
History | Infinity |
Mathematical Analysis | Matrices |
Number Systems | Popular & Elementary |
Pure Mathematics | Reference |
Research | Study & Teaching |
Transformations | Trigonometry |
Modelling of Convective Heat and Mass Transfer in Rotating Flows by Igor V. Shevchuk(6216)
Weapons of Math Destruction by Cathy O'Neil(5805)
Factfulness: Ten Reasons We're Wrong About the World – and Why Things Are Better Than You Think by Hans Rosling(4477)
Descartes' Error by Antonio Damasio(3154)
A Mind For Numbers: How to Excel at Math and Science (Even If You Flunked Algebra) by Barbara Oakley(3097)
Factfulness_Ten Reasons We're Wrong About the World_and Why Things Are Better Than You Think by Hans Rosling(3038)
TCP IP by Todd Lammle(3002)
Applied Predictive Modeling by Max Kuhn & Kjell Johnson(2896)
Fooled by Randomness: The Hidden Role of Chance in Life and in the Markets by Nassim Nicholas Taleb(2849)
The Tyranny of Metrics by Jerry Z. Muller(2831)
The Book of Numbers by Peter Bentley(2765)
The Great Unknown by Marcus du Sautoy(2526)
Once Upon an Algorithm by Martin Erwig(2469)
Easy Algebra Step-by-Step by Sandra Luna McCune(2456)
Lady Luck by Kristen Ashley(2397)
Practical Guide To Principal Component Methods in R (Multivariate Analysis Book 2) by Alboukadel Kassambara(2371)
Police Exams Prep 2018-2019 by Kaplan Test Prep(2346)
All Things Reconsidered by Bill Thompson III(2253)
Linear Time-Invariant Systems, Behaviors and Modules by Ulrich Oberst & Martin Scheicher & Ingrid Scheicher(2223)
